package com.chenjun.common.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 树结构数据对象
 * 
 */
@SuppressWarnings("serial")
public class TreeBean implements Serializable{

    /**
     * 树节点ID
     */
    private String id;
    /**
     * 树节点名称
     */
    private String text;
    /**
     * 树节点类型
     */
    private String type;
    /**
     * 父节点ID
     */
    private String fid;
    /**
     * 节点状态{"disabled":true,"opened":true,"selected":true}
     */
    private Map<?, ?> state;

    /**
     * 数量
     */
    private int amount;
    /**
     * 子节点集合
     */
    private List<TreeBean> children = new ArrayList<TreeBean>(0);

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getFid() {
        return fid;
    }

    public void setFid(String fid) {
        this.fid = fid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<TreeBean> getChildren() {
        return children;
    }

    public void setChildren(List<TreeBean> children) {
        this.children = children;
    }

    public Map<?, ?> getState() {
        return state;
    }

    public void setState(Map<?, ?> state) {
        this.state = state;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }
}
